PROJECT(registerSlices) 

FIND_PACKAGE ( ITK )
IF ( ITK_FOUND )
  INCLUDE(${ITK_USE_FILE})
ELSE ( ITK_FOUND )
  MESSAGE ( FATAL_ERROR "Cannot build without ITK" )
ENDIF ( ITK_FOUND )

FIND_PACKAGE(GenerateCLP REQUIRED)
IF(GenerateCLP_FOUND)
  INCLUDE(${GenerateCLP_USE_FILE})
ENDIF(GenerateCLP_FOUND)

SET (registerSlices_SOURCE registerSlices.cxx)
GENERATECLP(registerSlices_SOURCE registerSlices.xml)

ADD_EXECUTABLE(registerSlices registerSlices.cxx)

TARGET_LINK_LIBRARIES(registerSlices ITKCommon ITKAlgorithms ITKBasicFilters ITKIO)

